package com.ayit.car.mapper;

import com.ayit.car.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
* @author 为王下葬
* @description 针对表【user(用户信息)】的数据库操作Mapper
* @createDate 2024-06-18 20:40:38
* @Entity com.ayit.buycarprogram.pojo.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据openid查询用户信息
     * @param openid
     * @return
     */
    @Select("SELECT * FROM user WHERE openid = #{openid}")
    User getByOpenid(String openid);

    /**
     * 插入数据
     * @param user
     */
//    void insert(User user);
}




